import axios from 'axios'
import qs from 'qs'
const prefix = "/api/front/balance"
const headers = {
    'Content-Type': 'application/x-www-form-urlencoded'
}
export const myBalance = async function(userId){
    // 如果是Get提交，参数放在params属性中，而且不需要进行转换
    let response= await axios({
        // headers,
        method:"get",
        url:prefix,
        params:{userId}
    })
    return response.data;
}